package com.qiaofang.collectmanage.facade.impl;

import com.qiaofang.collectmanage.service.SecretaryService;
import com.qiaofang.collectmanage.stub.facade.SecretaryFacade;
import com.qiaofang.collectmanage.stub.request.SecretaryRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.validation.Valid;


/**
 * @author jingfa.sun
 */
@RestController
public class SecretaryFacadeImpl implements SecretaryFacade {

    @Autowired
    private SecretaryService secretaryService;

    @Override
    public void  crawlerSecretaryHouseInfo(@RequestBody @Valid SecretaryRequest secretaryRequest) {
        secretaryService.crawlerSecretaryHouseInfo(secretaryRequest);
    }

}
